package com.ruoyi.common.core.domain.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程分类信息对象 zx_coursetype
 * 
 * @author ruoyi
 * @date 2021-05-08
 */
public class Coursetype extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标识ID */
    private Long tId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String tName;

    /** 分类排序 升序 */
    @Excel(name = "分类排序 升序")
    private Integer tSort;

    /** -1禁用1启用 */
    @Excel(name = "-1禁用1启用")
    private Integer tStatus;

    /** 分类展示图标 */
    @Excel(name = "分类展示图标")
    private String tImg;

    /** 编辑用户 */
    @Excel(name = "编辑用户")
    private Integer uId;

    /** 编辑时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "编辑时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    public void settId(Long tId)
    {
        this.tId = tId;
    }

    public Long gettId()
    {
        return tId;
    }
    public void settName(String tName) 
    {
        this.tName = tName;
    }

    public String gettName() 
    {
        return tName;
    }
    public void settSort(Integer tSort) 
    {
        this.tSort = tSort;
    }

    public Integer gettSort() 
    {
        return tSort;
    }
    public void settStatus(Integer tStatus) 
    {
        this.tStatus = tStatus;
    }

    public Integer gettStatus() 
    {
        return tStatus;
    }
    public void settImg(String tImg) 
    {
        this.tImg = tImg;
    }

    public String gettImg() 
    {
        return tImg;
    }
    public void setuId(Integer uId) 
    {
        this.uId = uId;
    }

    public Integer getuId() 
    {
        return uId;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("tId", gettId())
            .append("tName", gettName())
            .append("tSort", gettSort())
            .append("tStatus", gettStatus())
            .append("tImg", gettImg())
            .append("uId", getuId())
            .append("time", getTime())
            .toString();
    }
}
